<!doctype html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>首页</title>
  <style>
    /*找到html标签、body标签，和挂载的标签 都给他们统一设置样式*/
    html, body, #app, .el-container {
      /*设置内部填充为0，几个布局元素之间没有间距*/
      padding: 0px;
      /*外部间距也是如此设置*/
      margin: 0px;
      /*统一设置高度为100%*/
      height: 100%;
    }

    /*添加按钮靠右显示*/
    .rightAlign {
      text-align: right;
    }
    table {
      border-right: 1px solid #000000;
      border-bottom: 1px solid #000000;
      text-align: center;
      width: 100%;
    }

    table th {
      border-left: 1px solid #000000;
      border-top: 1px solid #000000;
    }

    table td {
      border-left: 1px solid #000000;
      border-top: 1px solid #000000;
    }

  </style>
  <script src="js/vue.js"></script>
  <script src="js/vue-router.js"></script>
  <link rel="stylesheet" href="css/el/index.css">
  <script src="js/el/index.js"></script>
  <script type="text/javascript" src="js/axios/index.js"></script>
  <script type="text/javascript" src="api/ajax.js"></script>
  <script src="js/marked/marked.js"></script>

</head>
<body>
<div id="app">
  <div v-html="md"></div>
</div>

</body>
</html>
<script>
  new Vue({
    el: '#app',
    data: function () {
      return {
        response: '',
        md: null,
      }
    },
    mounted() {
      this.showMd()
    },
    methods: {
      showMd() {
        axios({
          // 名字换成readme.md 为啥404
          url: 'md/ReadMe.md', method: 'get',
        }).then(res => {
          this.md = marked.marked(res.data);
        })
      }
    },
  })
</script>
